﻿@using GigaSite.Domain.Entities
@using GigaSite.Domain.IoC
@using GigaSite.Web.Classes
@using GigaSite.Web.Models
@{
    Layout = "../../../../Views/Shared/_Layout.cshtml";
    Category category = ViewBag.category;
    ViewBag.Title = "Вакансии";
    string categoryUrlFormat = ViewBag.categoryUrlFormat;
    Func<Category, int> itemsCountSelector = ViewBag.itemsCountSelector;
}

<div class="page">
    @* Навигационная цепочка *@
    @Html.NavigationChain()
    
    @* Верхий тулбар *@
    <div class="topBar">
        <div class="add">
            @Html.ActionLink("Добавить вакансию","CreateVacancy")
        </div>
    </div>
    
    @* Вкладки *@
    <div class="tabs">
        <ul class="nav nav-tabs">
            <li class="active">@Html.ActionLink("Вакансии","Vacancies")</li>
            <li>@Html.ActionLink("Резюме","Resumes")</li>
        </ul>
    </div>
    @* Строка поиска и фильтра *@
    @Html.Partial("ContainerSearch")
    
    @* Категории в текущем разделе *@
    @Html.Partial("DynamicCategories",new CategoriesHtmlHelperModel()
                                            {
                                                Categories = category.GetChildCategories(),
                                                UrlFormat = categoryUrlFormat,
                                                ItemsCountSelector = itemsCountSelector
                                            })
</div>
